<template>
    <div>
        <el-form :inline="true"  class="demo-form-inline">
            <el-form-item label="活动状态">
                <el-select v-model="active_state" >
                <el-option
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value">
                </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="关键词">
                <el-input v-model="building" placeholder="楼盘名称"></el-input>
            </el-form-item>
            <el-form-item >
                <el-button type="primary" @click="selectBulkData">查询</el-button>
            </el-form-item>
    </el-form>
    </div>
    
  
</template>

<script>
export default {
    name:'PreferentialSearch',
    data() {
        return {
            building:'',
            active_state:'',
            options: [{
                value: '',
                label: '全部'
                }, {
                value: '通过审核',
                label: '通过审核'
                },{
                value: '未通过审核',
                label: '未通过审核'
                },{
                value: '已结束',
                label: '已结束'
                },{
                value: '待审核',
                label: '待审核'
            }],
        }
    },

    methods: {
        selectBulkData(){
            // console.log(123);
            
                let data=function(a,b,c,d){
                this.nowPage=a;
                this.perPageNum=b;
                this.active_state=c;
                this.real_estate_id=d
            }
            const data1=new data(1,5,this.active_state,this.building)
            this.$store.dispatch('gettableDataActions',data1)
            
           
            
        }
    },

    // computed: {
        
    // },

}
</script>

<style>

</style>